<div class="modal-header">  
    <h3>任务详情</h3>  
</div> 
<div  class="modal-body modal-body-task" id="pool_create_modal">
     <table class="table" style="height:200px">
        <tr>
            <td class="tb-item-name">任务：</td>
            <td>[["{{task.name}}"|translate]]</td>
        </tr>
        <tr>
            <td class="tb-item-name">目标：</td>
            <td>{{ task.target }}</td>
        </tr>
        <tr>
            <td class="tb-item-name">状态：</td>
            {% if task.status  == 'processing'%}
                <td>执行中</td>
            {% elif task.status  == 'fail' %}
                <td>失败</td>
            {% else %}
                <td>成功</td>
            {% endif %}
        </tr>
        <tr>
            <td class="tb-item-name">开始时间：</td>
            <td>{{ task.created_at }}</td>
        </tr>
        <tr>
            <td class="tb-item-name">结束时间：</td>
            <td>{{ task.finished_at |default('',True) }}</td>
        </tr>
        {% if task.status  not in ['done', 'success']%}
        <tr>
            <td class="tb-item-name">细节：</td>
            <td>{{ striptags(task.detail)|default('',True)}}</td>
        </tr>
        {% endif %}
    </table>
</div> 
<div class="modal-footer">   
    <button class="btn btn-white" ng-click="cancel()">关闭</button>  
</div>
